package org.jeecg.modules.enhance.java;

import java.util.Map;

import org.jeecg.modules.online.cgform.enhance.CgformEnhanceJavaInter;
import org.jeecg.modules.online.config.exception.BusinessException;
import org.springframework.stereotype.Component;

import com.alibaba.fastjson.JSONObject;

/**
 * 
 * @author windforce
 *
 */
@Component("GlodWeigh")
public class GlodWeigh implements CgformEnhanceJavaInter {

    
	@Override
	public int execute(String tableName, JSONObject json) throws BusinessException {
	
 
		
	String status = json.getString("status");
	json.put("status","3");
     System.out.println(json.toJSONString());
	return 0;

	}

	@Override
	public int execute(String tableName, Map<String, Object> map) throws BusinessException {
		System.out.println("2");
		return 1;
	}

}